import java.io.FileWriter;
import java.io.IOException;
import java.io.Writer;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 19182
 * Date: 2025-08-25
 * Time: 16:48
 */
public class demo4 {
    public static void main(String[] args) throws IOException {
        try(Writer writer = new FileWriter("./write.txt", true)){
            writer.write("hello world"); //写入字符串
        }
    }
}
